﻿<%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<ASPItalia.ModelVirtualCasting.Web.Models.ProfileModel>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	<% if (string.IsNullOrEmpty(this.Model.Person.NickName)) { %>
    Profilo non trovato
    <%}
    else
    { %>
    Profilo di <%: this.Model.Person.NickName%> 
    <% } %>
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
	<article>
		<header>
			<h1><% if (string.IsNullOrEmpty(this.Model.Person.NickName))
			{ %>
				Profilo non trovato
			<%}
			else
			{ %>
				<%: this.Model.Person.NickName%> 
			<% } %></h1>
		</header>
    
		<% if (!string.IsNullOrEmpty(this.TempData["Message"] as string)) { %>
		<%: this.TempData["Message"] %>
		<%} %>

		<% if (!string.IsNullOrEmpty(this.Model.Person.NickName)) { %>

			<% this.Html.RenderPartial("ShowPerson", this.Model.Person); %>

<%--			<footer>
				<p style="clear:both;"><%= this.Html.ActionLink(
					"Modifica profilo...",
					"Edit", this.Model.EditControllerName,
					new { nickname = this.Model.Person.NickName }, null)%></p>
				</footer> 
--%>		<%} %>
		
	</article>
</asp:Content>